﻿using System;

namespace Caffeine.Core.Test.TestModel
{
    public class CommandExceptionHandler : ICommandExceptionHandler
    {
        public Exception ExecuteException
        {
            get;
            set;
        }

        public Exception CanExecuteException
        {
            get;
            set;
        }

        public void HandleExecuteException(Exception ex)
        {
            ExecuteException = ex;
        }

        public void HandleCanExecuteException(Exception ex)
        {
            CanExecuteException = ex;
        }
    }
}
